home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
422mods.zip
/
DC06.422
< prev
next >
Wrap
Text File
|
1993-03-29
|
4KB
|
140 lines
DOC06.MOD -=Another ASV Mod=-
The Doctor #1 @17750
Wed Mar 24 18:11:53 1993
2Reply 3: 1Requested0
┌───────────────────────────────────────────────────────────────────────────┐
│Mod Name: DOC06.MOD Mod Authors: The Doctor 1@7750 │
│Difficulty: 1/10 Date: 3/18/93 │
│WWIV Version: 4.22 (Should Work In Any Version) │
│Files affected: NEWUSER.C │
│Description: Another ASV Mod (I do it MY way!) │
│ │
└───────────────────────────────────────────────────────────────────────────┘
Extended Discription:
I have seen alot of complex and incredibly sophisticated ASV mods come
through the network. They do way more than I really want or need so I
decided to write my own. This one has several interesting features.
First, it displays a file called SYSOP.MSG which should contain your
conditions for ASV validation. If the newuser does agree with the terms,
it then asks if he is a registered WWIV sysop. It also asks for his BBS
name and phone number which is saved as the user note.
This mod makes use of the auto-validation key feature. It's set to use
whatever value is set for the Alt-F10 key. I also have the exemption
set to 9. That makes the use ratio exempt from post/call and ul/dl
ratios.
Disclaimer:
It works here. You installed it. You deal with it.
Legend:
+ Add Line
- Delete Line
* Change Line
= Existing
! Where to change to add support for other nets (specific to this mod)
Step 1:
Back up your source. It's the law...
Step 2:
Open up NEWUSER.C,
Block copy these function before void newuser();
void auto_sysop_val()
{
char s[41];
nl();
prt( 1,"Are You Currently The SysOp Of A BBS? (No Co-SysOps) " );
if(yn()) {
printfile( "SYSOP" );
pausescr();
prt( 1,"Are You Sure You Want To Do This? " );
if(yn()) {
nl();
prt(1,"Have You Registered Your WWIV System? ");
if(yn()) {
nl();
pl("1Enter Your Registration Number Now.");0
outstr("2:");0
mpl(6);
input(s,6);
thisuser.wwiv_regnum=atoi(s);
} else nl(); pl("1Please support the concept of shareware and register 0
WWIV.");
nl();
pl("1Please Enter Your BBS Name & Phone Number Now.");0
outstr("2:");0
mpl(50);
input(thisuser.note,50);
sysoplog( "-=- Validated As A Visiting SysOp -=-" );
set_autoval( 9 );
thisuser.exempt=9;
}
}
}
Step 3:
Go down abit and search for this part of void newuser and add the
line indicated. You can put this almost anyplace in there but I
like to be neat...hehe
= nl();
= i=get_protocol(xf_down);
= if (i)
= thisuser.defprot=i;
= }
+ auto_sysop_val(); /*Add ME Please*/
Step 4:
MAKE FCNS (if applicable) or add the auto_sysop_val to the newuser.c
section of FCNS.H
Step 5:
Compile!
If you use this mod, drop me a line and let me know...
The Doctor
1 @7750
Sample SYSOP.MSG
-----------------------------------------------------------------------
-----------------------------------------------------------------------
You have activated our auto-sysop validation feature. I require
your BBS name and number as part of the validation process. If you
activated this by accident, please press 'N' now...
If you do not provide this info, I will be forced to delete your
account here.
-----------------------------------------------------------------------
-----------------------------------------------------------------------
The Doctor
The Original, You Might Say